package thread1;

public class Test5 {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                long a = 0;
                for (long i = 0; i < 20_0000_0000; i++) {
                    a++;
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        throw new RuntimeException(e);
                    }
                }
            }
        };
        thread.start();
        System.out.println(thread.getState());
    }
}
